package LearnDataStructure.c_树结构;

import java.util.List;

/**
 * @version: 1.0
 * @Author: wuqiu
 * @date: 2023-07-07 13:53
 * @description: LeetcodeLearnAlgorithm -> LearnDataStructure.c_树结构
 */
public class MyTreeNode<E> {
    public  E key;
    public MyTreeNode<E> parent;
    public List<MyTreeNode<E>> children;

    // public MyTreeNode(E key, MyTreeNode<E> parent) {
    //     this.key = key;
    //     this.parent = parent;
    // }

    public MyTreeNode(E key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "MyTreeNode{" +
                "key=" + key +
                '}';
    }
}
